{extend name="admin/public:layout" /}
{block name="title"}敏感词{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 敏感词</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="toolbar">
                <div class="pull-right">
                </div>
                <div class="clearfix"></div>
            </div>
            <form method="post" class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-2 control-label">敏感词</label>

                    <div class="col-sm-10">
                        <textarea name="text" class="form-control" id="text" cols="30" rows="10">{$words}</textarea>
                        <span class="help-block m-b-none">一行一个</span>
                    </div>
                </div>
                <div class="form-group">
                    <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="button" onclick="sendText()">
                        <strong>确定</strong>
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script src="/public/plugins/layer/layer.js"></script>
<script>
    function sendText() {
        var text=$('#text').val();
        $.post('{:url("sensitive")}',{text:text},function (res) {
            layer.msg(res.msg);
        })
    }
</script>
{/block}